package com.test.domain;

import com.interface21.context.ApplicationContext;
import com.interface21.context.ApplicationContextAware;
import com.interface21.context.ApplicationContextException;

/**
 * Created by tan on 2017/6/30.
 */
public class ApplicationContextAwareImpl implements ApplicationContextAware{
	public void setApplicationContext(ApplicationContext ctx) throws ApplicationContextException {
		Student student = (Student) ctx.getBean("student");
		System.out.println("aware "+student.getName());
	}
}
